#ifndef CONTENT_H_
#define CONTENT_H_

#include "../../util/Def.h"

#include <string>
#include <ctime>

class Content {
private:
	int id;
	std::string name;
	time_t duration;
	time_t begin;
	time_t end;
public:
	Content() :
		id(NOT_FOUND) {
	}

	Content(int id, std::string name, time_t duration, time_t begin, time_t end) :
		id(id), name(name), duration(duration), begin(begin), end(end) {
	}

	inline int getId() const {
		return id;
	}

	inline std::string getName() const {
		return name;
	}

	inline time_t getDuration() const {
		return duration;
	}

	inline time_t getBegin() const {
		return begin;
	}

	inline time_t getEnd() const {
		return end;
	}

	void setId(int id) {
		this->id = id;
	}

	void setName(std::string name) {
		this->name = name;
	}

	void setBegin(time_t begin) {
		this->begin = begin;
	}

	void setDuration(time_t duration) {
		this->duration = duration;
	}

	void setEnd(time_t end) {
		this->end = end;
	}
};

#endif /* CONTENT_H_ */
